from django.urls import path
from . import views
from cart.views import add_cart,show_cart,remove_cart,place_order,submit_order,submit_success,show_order

urlpatterns = [
    path('', views.purchase_index,name="purchase_index"),
    path('detail/',views.detail,name="detail"),
    path('goods/',views.goods,name='goods'),
    path('cart/',add_cart,name='add_cart'),
    path('cart/show/',show_cart,name='show_cart'),
    path('cart/remove/',remove_cart,name='remove_cart'),
    path('cart/place_order/',place_order,name='place_order'),
    path('cart/submit_order/',submit_order,name='submit_order'),
    path('cart/submit_success/',submit_success,name='submit_success'),
    path('myorders/',show_order,name='show_order'),
]